import axios from '@/libs/api.request'
export const medicineSearch = (info) => {
  return axios.request({
    url: '/medicine/search',
    method: 'post',
    data: info
  })
}
export const sportsSearch = (info) => {
  return axios.request({
    url: '/sports/search',
    method: 'post',
    data: info
  })
}
export const foodSearch = (info) => {
  return axios.request({
    url: '/food/search',
    method: 'post',
    data: info
  })
}
export const foodRecordAdd = (info) => {
  return axios.request({
    url: '/food_record_new/add',
    method: 'post',
    data: info
  })
}
export const medicineRecordAdd = (info) => {
  return axios.request({
    url: '/medicine_record/add',
    method: 'post',
    data: info
  })
}
export const sportsRecordAdd = (info) => {
  return axios.request({
    url: '/sports_record/add',
    method: 'post',
    data: info
  })
}
export const getLifeRecord = (info) => {
  return axios.request({
    url: '/life_record/plan',
    method: 'post',
    data: info
  })
}
export const foodRecordDel = (info) => {
  return axios.request({
    url: '/food_record_new/delete',
    method: 'post',
    data: info
  })
}
export const medicineRecordDel = (info) => {
  return axios.request({
    url: '/medicine_record/delete',
    method: 'post',
    data: info
  })
}
export const sportsRecordDel = (info) => {
  return axios.request({
    url: '/sports_record/delete',
    method: 'post',
    data: info
  })
}
export const addNote = (info) => {
  return axios.request({
    url: '/life_record/note',
    method: 'post',
    data: info
  })
}
